<template>
<div id="app">
  <Header/>
  <section class="content">
    <div style="background-color:#333">
      <NavMenu @collapse="navCollapse"/>
    </div>
    <article class="article_content" >
      <Bread/>
      <router-view></router-view>
    </article>
  </section>
</div>
  
</template>

<script>
  import { Header , NavMenu ,Bread } from "@/components"
  export default {
    name:'Index',
    data() {
      return {
         navWidth:201,
         cos:''
      }
    },
    components:{
      Header,
      NavMenu,
      Bread
    },
    methods: {
     navCollapse(val){
       this.cos=val;
       this.navWidth = val ? 65 :201
     }
    },
  }
</script>

<style>

.content{
  display: flex;
  flex: 1;
}
.article_content{
  padding: 10px;
  box-sizing: border-box;
  width: 100vw;
  overflow: hidden;
}
</style>
